package module.building.view.buildingListPanel
{
	import com.darwin.darwinUI.assist.IGroupItem;
	import com.darwin.darwinUI.controls.ITabPanel;
	import com.darwin.darwinUI.controls.List;
	import com.darwin.darwinUI.events.UIEvent;
	
	import flash.events.Event;

	/**
	 * 建筑列表，显示可建造的各个建筑及相关信息 
	 * @author hc
	 */
	public class BuildList extends List
	{
		private var _dataFilter:String;
		
		public function BuildList()
		{
			super(BuildListItem,133,187,1,1);
			this.width = 554;
			this.height = 396;			
//			init();
			addEventListener(Event.ADDED_TO_STAGE, onAdded);
		}
		
		private function init():void
		{
			var array:Array = new Array();
			for(var i:int=0;i<20;i++)
			{
				var obj:Object = {"number":i};
				array.push(obj);
			}
			source = array;
		}
		
		private function onAdded(e:Event):void
		{
			rollToPage(0,1);
			removeEventListener(Event.ADDED_TO_STAGE, onAdded);
		}
		
		
	}
}